extends NamedComponent


class_name ICharacterComponent
"""
角色组件接口,用于组织数据挂载其他子组件
"""


func get_character() -> CharacterComponent:
    return null

func get_attribute(attr_name: String) -> Attribute:
    var character: CharacterComponent = get_character()
    if character and character.meta:
        return character.meta.items.get(attr_name)
    return null
